requestOTP

inline suspend fun <T : AuthRecord> requestOTP(collection: String, email: String): String

Requests an OTP email be sent Authenticate a single auth record with an one-time password (OTP).

Note that when requesting an OTP we return an otpId even if a user with the provided email doesn't exist as a very basic enumeration protection.

Return

returns the OTP ID

Parameters

collection

the ID or name of the auth collection

email

the auth record's email.